#include "builder/Product.hpp"

void Product::AddPart(const std::string &part)
{
    parts_.push_back(part);
}

std::ostream& operator<<(std::ostream &os, const Product &product) {
    bool first = true;
    for (auto &part : product.parts_) {
        if (first) {
            first = false;
        }
        else {
            os << " ";
        }
        os << part;
    }

    return os;
}
